package com.ecoolex.chinadutyfree.retailer.all;

import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class EhcController {
	
	public EhcController() {
		LoggerFactory.getLogger(EhcController.class).info("启用点火URL: /_ehc.html");
	}

	@Value("${spring.application.name:default}")
	private String name;

	@RequestMapping("/_ehc.html")
	@ResponseBody
	public String ehc() {
		return "ok by appName " + name;
	}
}
